package com.oig.sys.auth.dto;

import com.oig.common.validator.GroupEdit;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;

@Schema
@Getter
@Setter
@ToString
public class OpenAuthDto {

	@Schema(description = "ID")
	@NotEmpty(message = "参数错误，ID不能为空",groups = {GroupEdit.class})
	private Integer id;
	@Schema(description = "第三方类型，授权类型")
	@NotEmpty(message = "参数错误，第三方类型不能为空")
	private String authType;
	@Schema(description = "第三方认证地址")
	@NotEmpty(message = "参数错误，第三方认证地址不能为空")
	private String authUrl;
	@Schema(description = "第三方颁发的clientId")
	@NotEmpty(message = "参数错误，第三方颁发的clientId不能为空")
	private String clientId;
	@Schema(description = "第三方颁发的security key")
	@NotEmpty(message = "参数错误，第三方颁发的security key不能为空")
	private String clientSecurity;

	@Schema(description = "PC端回调地址")
	@NotEmpty(message = "参数错误，PC端回调地址不能为空")
	private String pcBackUrl;
	@Schema(description = "移动端回调地址")
	private String mbBackUrl;

}
